#!/bin/bash

# 获取当前脚本所在的目录
current_dir=$(
    cd "$(dirname "$0")"
    pwd
)

# 拷贝 script/docker/docker.sh 到 /usr/bin/ht-docker
sudo cp ${current_dir}/docker/docker.sh /usr/bin/ht-docker

# 拷贝 script/docker/filebrowser.sh 到 /usr/bin/ht-filebrowser
sudo cp ${current_dir}/docker/filebrowser.sh /usr/bin/ht-filebrowser

# 执行脚本 ${current_dir}/auto_start/install_auto_start.sh
${current_dir}/auto_start/install_auto_start.sh

# 拷贝 script/auto_start/AutoStart/roadside/docker_auto_start_10.sh 到 ~/AutoStart/docker_auto_start_10.sh
cp ${current_dir}/auto_start/AutoStart/roadside/docker_auto_start_10.sh ~/AutoStart/docker_auto_start_10.sh

# 拷贝 script/auto_start/AutoStart/roadside/sys_log_01.sh 到 ~/rs_u18_ros_docker_env/AutoStart/sys_log_01.sh，本脚本用于自动清理docker日志的
cp ${current_dir}/auto_start/AutoStart/roadside/sys_log_01.sh ~/rs_u18_ros_docker_env/AutoStart/sys_log_01.sh

# 执行脚本 ${current_dir}/install/installZSH.sh
${current_dir}/install/installZSH.sh

# 执行脚本 ${current_dir}/docker/docker-init.sh
${current_dir}/docker/docker-init.sh
